function bugcheck(errcode) {
    var bugalertbox = document.getElementById('bugalert');
    bugalertbox.innerHTML = "An error has occured, and the site administrator will be notified.<br /> The details are as follows:<span style=\"size: x-small;\">" + errcode + "</span>";
}
